package com.zhl.multi_data_source_demo;

import java.lang.annotation.*;

@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface DataSource {

    String value() default DataSource.master;

    String master = "masterDataSource";

    String slave = "slaveDataSource";

}
